package com.shenmazong.servertalkstudent.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.shenmazong.pojo.TbStudent;
import com.shenmazong.vo.StudentVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author 勇
 */
@Mapper
@Component("tbStudentMapper")
public interface TbStudentMapper extends BaseMapper<TbStudent> {

    IPage<StudentVo> getClassByPage(Page<StudentVo> page, @Param("userId") Integer userId);
    IPage<StudentVo>  getFinishClassByPage(Page<StudentVo> page, @Param("userId") Integer userId);
    IPage<StudentVo> getWillClassByPage(Page<StudentVo> page, @Param("userId") Integer userId);
    IPage<StudentVo> getPayFeeByPage(Page<StudentVo> page, @Param("userId") Integer userId);
}
